package com.book.manager.entity;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
@DynamicUpdate
@DynamicInsert
@Entity
@Table(name = "msg")
public class msg {

    @ApiModelProperty("主键ID")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer msgid;

    @ApiModelProperty("json")
    private String json;

    @ApiModelProperty("事件")
    private String event;

    @ApiModelProperty("详细事件")
    private String spevent;

    @ApiModelProperty("触发时间")
    private Date time;

    @ApiModelProperty("来源")
    private String from1;

    @ApiModelProperty("负责人")
    private String head;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("url")
    private String url;
}
